package com.rightsidetech.user.dtos.requst;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
public class WxGetPhoneReq implements Serializable {

    @ApiModelProperty(value = "openid",required = true)
    @NotBlank(message = "openid不能为空")
    private String openid;

    @ApiModelProperty(value = "微信sessionKey",required = true)
    @NotBlank(message = "sessionKey不能为空")
    private String sessionKey;

    @ApiModelProperty(value = "加密数据包",required = true)
    @NotBlank(message = "encryptedData不能为空")
    private String encryptedData;

    @ApiModelProperty(value = "偏移量",required = true)
    @NotBlank(message = "iv不能为空")
    private String iv;

    @ApiModelProperty("头像")
    @Length(max = 255,message = "头像参数长度不合法")
    private String headImg;

    @ApiModelProperty("昵称")
    @Length(max = 20,message = "昵称最大20个字符")
    private String petName;

}
